import request from '@/utils/request'

// 查询实名认证列表
export function listRealName(query) {
  return request({
    url: '/course/realName/list',
    method: 'get',
    params: query
  })
}

// 查询实名认证详细
export function getRealName(id) {
  return request({
    url: '/course/realName/view/' + id,
    method: 'get'
  })
}
export function findByUserId(id) {
  return request({
    url: '/course/realName/findByUserId/' + id,
    method: 'get'
  })
}

// 新增实名认证
export function addRealName(data) {
  return request({
    url: '/course/realName/add',
    method: 'post',
    data: data
  })
}
export function uploadUrl(data) {
  return request({
    url: '/course/realName/upload',
    method: 'post',
    data: data
  })
}

export function addRegiserSignMe(data) {
  return request({
    url: '/corporateMerchant/addRegiserSignMe',
    method: 'post',
    data: data
  })
}

export function addRegiserSignMemerchant(data) {
  return request({
    url: '/merchant/addRegiserSignMe',
    method: 'post',
    data: data
  })
}

export function queryTransparent(query) {
  return request({
    url: '/transparent/query',
    method: 'get',
    params: query
  })
}









// 修改实名认证
export function updateRealName(data) {
  return request({
    url: '/course/realName/update',
    method: 'put',
    data: data
  })
}





// 修改实名认证
export function corporateMerchant(data) {
  return request({
    url: '/course/realName/update',
    method: 'put',
    data: data
  })
}


// 删除实名认证
export function delRealName(id) {
  return request({
    url: '/course/realName/delete/' + id,
    method: 'delete'
  })
}
